package com.jk.smartelderlycare.service;

import com.jk.smartelderlycare.dto.SysDynamics;
import com.jk.smartelderlycare.pojo.PagedResponse;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * @Description 添加描述
 * @Author hhk
 * @LastChangeDate 2024/11/19 20:23
 * @Version v1.0
 */
public interface SysDynamicsService {

    /**
     * @description: 后端分页查询
     * @param: [sysDynamics, pageNum, pageSize]
     * @return: com.jk.smartelderlycare.pojo.PagedResponse<com.jk.smartelderlycare.dto.SysDynamics>
     * @author hhk
     * @date: 2024/11/19 20:17
     */

    public PagedResponse<SysDynamics> findSysDynamicsPaginationList( SysDynamics sysDynamics,  Integer pageNum,  Integer pageSize);
    /**
     * @description: 新增动态
     * @param: [sysDynamics]
     * @return: void
     * @author hhk
     * @date: 2024/11/19 20:17
     */

    public void addSysDynamics( SysDynamics sysDynamics);
    /**
     * @description: 根据id删除一条数据
     * @param: [dynamicsId]
     * @return: void
     * @author hhk
     * @date: 2024/11/19 20:18
     */

    public void deleteSysDynamicsById( Long dynamicsId);
    /**
     * @description: 根据id回显一条数据
     * @param: [dynamicsId]
     * @return: com.jk.smartelderlycare.dto.SysDynamics
     * @author hhk
     * @date: 2024/11/19 20:19
     */

    public SysDynamics findSysDynamicsById( Long dynamicsId);
    /**
     * @description: 修改动态
     * @param: [sysDynamics]
     * @return: void
     * @author hhk
     * @date: 2024/11/19 20:20
     */

    public void updateSysDynamics(SysDynamics sysDynamics);
    /**
     * @description: 修改状态
     * @param: [sysDynamics]
     * @return: void
     * @author hhk
     * @date: 2024/11/19 20:21
     */

    public void updateStatusById( SysDynamics sysDynamics);
    /**
     * @description: 批量删除
     * @param: [ids]
     * @return: void
     * @author hhk
     * @date: 2024/11/19 20:21
     */

    public void deleteSysDynamicsByIds( List<Long> ids);
}
